// 根布局组件

import { Inter } from "next/font/google";
import "./globals.css";
import { Toaster } from "@/components/ui/sonner";

import { ConvexClientProvider } from "@/providers/convex-clerk-providers";
import { ModalPropvider } from "@/providers/modal-providers";

const inter = Inter({ subsets: ["latin"] });

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="en">
      <body className={inter.className}>
        <ConvexClientProvider>
          {/* 这里的组件会被当做全局的组件 */}
          <Toaster />
          <ModalPropvider />
          {children}
        </ConvexClientProvider>
      </body>
    </html>
  );
}
